package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账户间往来对象 bank_account_inner
 * 
 * @author sauger
 * @date 2022-04-01
 */
public class BankAccountTransfer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 流入账户 */
    @Excel(name = "流入账户")
    private Integer inAccount;

    /** 流出账户 */
    @Excel(name = "流出账户")
    private Integer outAccount;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payDate;

    /** 登记时间 */
    private Long createdAt;

    /** 登记人 */
    private Long createdBy;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setInAccount(Integer inAccount) 
    {
        this.inAccount = inAccount;
    }

    public Integer getInAccount() 
    {
        return inAccount;
    }
    public void setOutAccount(Integer outAccount) 
    {
        this.outAccount = outAccount;
    }

    public Integer getOutAccount() 
    {
        return outAccount;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setPayDate(Date payDate) 
    {
        this.payDate = payDate;
    }

    public Date getPayDate() 
    {
        return payDate;
    }
    public void setCreatedAt(Long createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Long getCreatedAt() 
    {
        return createdAt;
    }
    public void setCreatedBy(Long createdBy) 
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy() 
    {
        return createdBy;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("inAccount", getInAccount())
            .append("outAccount", getOutAccount())
            .append("amount", getAmount())
            .append("payDate", getPayDate())
            .append("remark", getRemark())
            .append("createdAt", getCreatedAt())
            .append("createdBy", getCreatedBy())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
